#pragma once
#include "AccountImpl.h"

class RegularAccount_t : public AccountImpl {
	friend class AccountFactory;
public:
	~RegularAccount_t() {
		m_bank->Detach(this);
	}
	
	virtual int getAccountType() const {
		return Regular_e;
	}

private:
	RegularAccount_t(Bank_t* b, int percent, int date, int period) : AccountImpl(b, percent, date, period) {
		m_bank->Attach(this);
	}
};